﻿@using Pyramid.Mvc.Html
@model Pyramid.Models.Staff

<div class="pageContent">
	<div class="pageFormContent" layouth="60">
		@Html.HiddenFor(x => x.Id)
		<p>
			@Html.LabelFor(m => m.Code)
			@Html.ReadonlyFieldFor(m => m.Code)
		</p>
		<p>
			@Html.LabelFor(m => m.FullName)
			@Html.ReadonlyFieldFor(m => m.FullName)
		</p>
		<p>
			@Html.LabelFor(m => m.Gender)
			@Html.TextBox("Gender", Model.GenderString, new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.Birthday)
			@Html.ReadonlyDateFor(m => m.Birthday)
		</p>
		<p>
			@Html.LabelFor(m => m.IdCard)
			@Html.ReadonlyFieldFor(m => m.IdCard)
		</p>
		<p>
			@Html.LabelFor(m => m.Mobile)
			@Html.ReadonlyFieldFor(m => m.Mobile)
		</p>
		<p class="nowrap">
			@Html.LabelFor(m => m.HomeAddress)
			@Html.ReadonlyFieldFor(m => m.HomeAddress)
		</p>
		<div class="divider"></div>
		<p>
			@Html.LabelFor(m => m.DepartmentId)
			@Html.TextBox("Department", Model.Department.Name, new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.PositionId)
			@Html.TextBox("Position", Model.Position.Name, new {@readonly = "readonly"})
		</p>
		<p>
			@Html.LabelFor(m => m.EntryDate)
			@Html.ReadonlyDateFor(m => m.EntryDate)
		</p>
		<div class="divider"></div>
		<p class="nowrap">
			@Html.LabelFor(m => m.BriefIntro)
			@Html.TextAreaFor(m => m.BriefIntro, new {@class = "longText longParagraph"})
		</p>
	</div>
</div>